import axios from '@/libs/request/axios'
// 获取列表
export const getApprovePlanList = (params) => {
    return axios.request({
        url: `/product/productUpdatePlan/getApprovePlanList`,
        method: 'POST',
        data: params
    })
}
// 获取详情
export const getApprovePlanDetail = (params) => {
    return axios.request({
        url: `/product/productUpdatePlan/getApprovePlanDetail`,
        method: 'POST',
        data: params
    })
}
// 查询产品修改信息
export const getPrototypeInfo = (params) => {
    return axios.request({
        url: '/product/productUpdatePlan/getPrototypeInfo',
        params:params,
        method: 'get'
    })
}

// 保存产品修改信息
export const saveProductProposal = (params) => {
    return axios.request({
        url: '/product/productUpdatePlan/saveProductProposal',
        data:params,
        method: 'post'
    })
}

// 查询产品修改方案列表
export const queryProductUpdatePlanList = (params) => {
    return axios.request({
        url: '/product/productUpdatePlan/queryProductUpdatePlanList',
        data:params,
        method: 'post'
    })
}


//  查询产品修改方案
export const queryProductUpdateList = (params) => {
    return axios.request({
        url: '/product/productUpdatePlan/queryProductUpdateList',
        data:params,
        method: 'post'
    })
}

//  保存产品修改方案
export const saveProductUpdatePlan = (params) => {
    return axios.request({
        url: '/product/productUpdatePlan/saveProductUpdatePlan',
        data:params,
        method: 'post'
    })
}

//  删除产品修改方案
export const delUpdateById = (id,params) => {
    return axios.request({
        url:`/product/productUpdatePlan/delUpdateById/${id}`,
        data: params,
        method: 'DELETE'
    })
}

//  删除产品修改方案信息
export const delUpdatePlanById = (id,params) => {
    return axios.request({
        url:`/product/productUpdatePlan/delUpdatePlanById/${id}`,
        data: params,
        method: 'DELETE'
    })
}

// 提交流程
export const processSubmission = (params) => {
    return axios.request({
        url: '/product/productUpdatePlan/processSubmission',
        data: params,
        method: 'post'
    })
}
// 提交流程
export const submitApproveProcess = (params) => {
    return axios.request({
        url: '/product/productUpdatePlan/submitApproveProcess',
        data: params,
        method: 'post'
    })
}
